/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.dealer.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.vivo.dealer.entity.ViDeaWarehousesn;
import com.vivo.dealer.dao.ViDeaWarehousesnDao;

/**
 * 串号信息Service
 * @author jyangye
 * @version 2018-01-18
 */
@Service
@Transactional(readOnly = true)
public class ViDeaWarehousesnService extends CrudService<ViDeaWarehousesnDao, ViDeaWarehousesn> {

    @Autowired
    private ViDeaWarehousesnDao viDeaWarehousesnDao;

	public ViDeaWarehousesn get(String id) {
		return super.get(id);
	}


	public ViDeaWarehousesn get(ViDeaWarehousesn viDeaWarehousesn) {
		return super.get(viDeaWarehousesn);
	}

	public ViDeaWarehousesn getById(ViDeaWarehousesn viDeaWarehousesn) {
	    return viDeaWarehousesnDao.getById(viDeaWarehousesn);
    }


	public ViDeaWarehousesn getBySn(ViDeaWarehousesn viDeaWarehousesn) {
	    return viDeaWarehousesnDao.getBySn(viDeaWarehousesn);
    }
	
	public List<ViDeaWarehousesn> findList(ViDeaWarehousesn viDeaWarehousesn) {
		return super.findList(viDeaWarehousesn);
	}
	
	public Page<ViDeaWarehousesn> findPage(Page<ViDeaWarehousesn> page, ViDeaWarehousesn viDeaWarehousesn) {
		return super.findPage(page, viDeaWarehousesn);
	}

	public ViDeaWarehousesn getLastChangeItem(ViDeaWarehousesn viDeaWarehousesn) {
	    return viDeaWarehousesnDao.getLastChangeData(viDeaWarehousesn);
    }
	
	@Transactional(readOnly = false)
	public void save(ViDeaWarehousesn viDeaWarehousesn) {
		super.save(viDeaWarehousesn);
	}
	
	@Transactional(readOnly = false)
	public void delete(ViDeaWarehousesn viDeaWarehousesn) {
		super.delete(viDeaWarehousesn);
	}
	
}